<?php
namespace Hr\OnlineBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Hr\OnlineBundle\Form\UserPasswordType; // parent form

class ResetUserPasswordType extends UserPasswordType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {

		parent::buildForm($builder, $options);        

        $builder->remove('oldPassword');

    }

    public function getName()
    {
        return 'user';
    }
}